package com.fumihiko.modules.jxxm.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.fumihiko.common.utils.PageUtils;
import com.fumihiko.common.utils.Query;

import com.fumihiko.modules.jxxm.dao.OldWorkerErrorDao;
import com.fumihiko.modules.jxxm.entity.OldWorkerErrorEntity;
import com.fumihiko.modules.jxxm.service.OldWorkerErrorService;


@Service("oldWorkerErrorService")
public class OldWorkerErrorServiceImpl extends ServiceImpl<OldWorkerErrorDao, OldWorkerErrorEntity> implements OldWorkerErrorService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<OldWorkerErrorEntity> page = this.page(
                new Query<OldWorkerErrorEntity>().getPage(params),
                new QueryWrapper<OldWorkerErrorEntity>().ne("result_i",0)
        );

        return new PageUtils(page);
    }

}
